import instance from '.';

// 获取用户角色列表参数
interface IRoleParamsType {
  keyword?: string;
  pageNum?: number;
  pageSize?: number;
}
interface RoleList {
  adminCount: number;
  createTime: string;
  description: string;
  id: number;
  name: string;
  sort: number;
  status: number;
}

export const getRoleListApi = (
  params: IRoleParamsType,
): IPR<IgetListRes<RoleList>> => instance.get('/role/list', { params });
